<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
		<!-- Loading Bootstrap -->
		<link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
		<!-- Loading Flat UI -->
		<link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
		<link href="./Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
		<link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">
		<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
		<!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>

	<body>
		<form action="" method="post">

			<div class="alert alert-success">修改分类</div>
			<div class="form-group">
				<label for="exampleInputEmail1">分类名称</label>
				<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入分类名称"  name="cname" value="<?php echo $oldCate['cname']?>">
			</div>
			<div class="form-group">
				<label for="exampleInputEmail1">所属类型</label>
				<select name="type_taid" class="form-control">
					<option value="">请选择</option>
				<?php foreach ($type as $v){?>
					<option value="<?php echo $v['taid']?>" <?php if($oldCate['type_taid'] == $v['taid']){?>
                selected 
               <?php }?>><?php echo $v['taname']?></option>
				<?php }?>
				</select>
			</div>
			
			
			<div class="form-group">
				<label for="exampleInputEmail1">所属分类</label>
				<select name="pid" class="form-control">
				<?php foreach ($cateModle as $v){?>
					<option value="<?php echo $v['cid']?>" <?php if($oldCate['pid'] == $v['cid']){?>
                selected 
               <?php }?>><?php echo $v['cname']?></option>
				<?php }?>
				</select>
			</div>
			

			<div class="form-group">
				<label for="exampleInputEmail1">分类排序</label>
				<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入分类排序"  name="sort" value="<?php echo $oldCate['sort']?>">
			</div>
			<input type="hidden" name="cid" value="<?php echo $oldCate['cid']?>" />
			<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
	</body>

</html>